RAW CONVERTER

This Converter reads and writes two formats used by several popular public domain tools, the ".raw" triangle file format and the ".tpo" or "tpoly" raw polygon format.

It adds two entries to the conversion lists:

Raw triangles *.raw
Raw polygons *.tpoly

Geometry
The "raw" and "tpoly" file formats are ASCII, meaning they can be created or altered in any text editor. Each file represents a single object. No hierarchy is present.

The "raw" format stores only triangles. One triangle is described per line. Each line contains the coordinates of the three points of the triangle, or a total of nine numbers per line.

On import, it is considered a fatal error if the text line does not contain nine values. This Converter uses the C language functions for printing and scanning numeric values, so C-style scientific notation can be used for large numbers.

The "tpoly" file format is a simple extension of the "raw" format. It can store many-sided polygons instead of just triangles. Again, "tpoly" files are editable ASCII.

Each line in a "tpoly" polygon file begins with the number of points in the polygon. After this is a single (long) line containing the coordinates of all the points of the polygon, with no line breaks allowed.

Material attributes
"Raw" and "tpoly" files do not contain any material information.

Options dialog
This Converter has no options on its dialog.

Recognition
Because of their free-form nature, "raw" and "tpoly" files may confuse Interchange's automatic recognition abilities. These files may be mistaken for other types of files, and vice-versa. To force the recognition of "raw" and "tpoly" files in these situations, see the Force recognition options in the Interchange Options dialog.

To ease this automatic recognition, you can add an optional comment line at the start of the file, as follows:
# RAW
# tpoly

With these, Interchange will always recognize these files correctly. However, these comments are not compatible with most tools that use these types of files. If you plan to make "raw" files with your own tools in order to convert them to other formats, consider adding this type of comment to your files to aid in Interchange's automatic recognition.

Background
These file formats were defined by many public domain tools.